Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tor Gitlab #27315 - maint-0.3.5]: Fix seccomp sandbox rules for openat #2012

Open
wants to merge 1 commit into
base: maint-0.3.5
Choose a base branch
from

Conversation

Jigsaw52
Copy link
Contributor

The need for casting negative syscall arguments depends on the
glibc version. This affects the rules for the openat syscall which
uses the constant AT_FDCWD that is defined as a negative number.
This commit adds logic to only apply the cast when necessary, on
glibc versions from 2.27 onwards.

The need for casting negative syscall arguments depends on the
glibc version. This affects the rules for the openat syscall which
uses the constant AT_FDCWD that is defined as a negative number.
This commit adds logic to only apply the cast when necessary, on
glibc versions from 2.27 onwards.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 9606

  • 0 of 10 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.003%) to 59.238%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/lib/sandbox/sandbox.c 0 10 0.0%
Totals Coverage Status
Change from base Build 9482: -0.003%
Covered Lines: 43334
Relevant Lines: 73152

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants